<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
  <url><loc><%= url(~p"/") %></loc><changefreq>always</changefreq></url>
  <url><loc><%= url(~p"/about") %></loc></url>
  <url><loc><%= url(~p"/coc") %></loc></url>
  <url><loc><%= url(~p"/contact") %></loc></url>
  <url><loc><%= url(~p"/films") %></loc></url>
  <url><loc><%= url(~p"/community") %></loc></url>
  <url><loc><%= url(~p"/sponsor") %></loc></url>
  <url><loc><%= url(~p"/sponsor/pricing") %></loc></url>
  <url><loc><%= url(~p"/nightly") %></loc></url>
  <url><loc><%= url(~p"/join") %></loc></url>
  <url><loc><%= url(~p"/subscribe") %></loc></url>
  <url><loc><%= url(~p"/live") %></loc></url>

  <url><loc><%= url(~p"/beats") %></loc></url>
  <%= for album <- @albums do %>
    <url><loc><%= url(~p"/beats/#{album.slug}") %></loc></url>
  <% end %>

<%= for item <- @news_items do %>
  <url><loc><%= url(~p"/news/#{NewsItem.slug(item)}") %></loc></url>
<% end %>

  <url><loc><%= url(~p"/sources") %></loc></url>
<%= for source <- @news_sources do %>
  <url><loc><%= url(~p"/source/#{source.slug}") %></loc></url>
<% end %>

<%= for person <- @people do %>
  <url><loc><%= url(~p"/person/#{person.handle}") %></loc></url>
<% end %>

  <url><loc><%= url(~p"/podcasts") %></loc></url>
<%= for podcast <- @podcasts do %>
  <url><loc><%= url(~p"/#{podcast.slug}") %></loc></url>
  <url><loc><%= url(~p"/#{podcast.slug}/popular") %></loc></url>
  <url><loc><%= url(~p"/#{podcast.slug}/recommended") %></loc></url>
<% end %>

  <url><loc><%= url(~p"/request") %></loc></url>
<%= for podcast <- @podcasts do %>
  <url><loc><%= url(~p"/request/#{podcast.slug}") %></loc></url>
<% end %>

  <%= for episode <- @episodes do %>
    <url><loc><%= url(~p"/#{episode.podcast.slug}/#{episode.slug}") %></loc></url>
  <% end %>

  <url><loc><%= url(~p"/posts") %></loc></url>
  <%= for post <- @posts do %>
    <url><loc><%= url(~p"/posts/#{post.slug}") %></loc></url>
  <% end %>

  <url><loc><%= url(~p"/topics") %></loc></url>
  <%= for topic <- @topics do %>
    <url><loc><%= url(~p"/topic/#{topic.slug}") %></loc></url>
  <% end %>
</urlset>
